package org.lee.controller

import groovy.util.logging.Slf4j

import org.lee.service.MyService

@Slf4j
class TestController {

	MyService myService
	
    def index() {
		int a = 0
		 
		if(myService){
			a = myService.process()
			log.debug("a is {}", a)
		}else{
			log.debug "my service is not null"
		}
		
		render(contentType: "text/json"){
			name = "lee"
			age = a
		} 
	}
	
}
